/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.manage.core.service.order;

import info.peigen.hotpot.common.core.annotation.Comment;
import info.peigen.hotpot.common.service.base.ServiceOrderBase;
import info.peigen.hotpot.manage.core.enums.UserStatus;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(UserEditOrder)</b>
 * "用户" 编辑服务请求
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2024-06-28
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class UserEditOrder extends ServiceOrderBase {
    @Comment(value = "用户Id")
    @NotEmpty(message = "[用户Id]不得为空")
    @Size(max = 30, message = "[用户Id]超长")
    String userId;
    @Comment(value = "老登录密码")
    @Size(max = 100, message = "[老登录密码]超长")
    String oldPassword;
    @Comment(value = "新登录密码")
    @Size(max = 100, message = "[新登录密码]超长")
    String newPassword;
    @Comment(value = "确认新登录密码")
    @Size(max = 100, message = "[确认新登录密码]超长")
    String confirmNewPassword;
    @Comment(value = "状态")
    UserStatus status;
    @Comment(value = "角色Ids")
    @Size(max = 1000, message = "[角色Ids]超长")
    String roleIds;
    @Comment(value = "职位Ids")
    @Size(max = 1000, message = "[职位Ids]超长")
    String positionIds;
    @Comment(value = "组织Ids")
    @Size(max = 1000, message = "[组织Ids]超长")
    String organizationIds;
    @Comment(value = "memo")
    @Size(max = 2000, message = "[memo]超长")
    String memo;
}